import request from "./request";

export function searchCollegeByNameApi(params:any) {
    return request({
        url: "/admin/college",
        method: 'get',
        params
    })
}


export function getAthleteByNameApi(params:any) {
    return request({
        url: "/admin/athlete",
        method: 'get',
        params
    })
}


export function searchAllCollegeApi(params:any) {
    return request({
        url: "/admin/college",
        method: 'get',
        params
    })
}
export function searchAllEventApi(params:any) {
    return request({
        url: "/admin/college_event",
        method: 'get',
        params
    })
}

export function updateCollegeApi(data:any) {
    return request({
        url: "/admin/update_college",
        method: 'put',
        data
    })
}



export function updateEventApi(data:any) {
    return request({
        url: "/admin/update_event",
        method: 'put',
        data
    })
}

export function updateAthleteApi(data:any) {
    return request({
        url: "/admin/update_athlete",
        method: 'put',
        data
    })
}
export function getCollegeInfoByIdApi(params:any) {
    return request({
        url: "/admin/college_info",
        method: 'get',
        params
    })
}
export function getAthleteInfoByIdApi(params:any) {
    return request({
        url: "/admin/athlete_info",
        method: 'get',
        params
    })
}
export function getEventInfoByIdApi(params:any) {
    return request({
        url: "/admin/event_info",
        method: 'get',
        params
    })
}
export function deleteCollegeApi(params:any) {
    return request({
        url: "/admin/delete_college",
        method: 'delete',
        params
    })
}


export function deleteEventApi(params:any) {
    return request({
        url: "/admin/delete_event",
        method: 'delete',
        params
    })
}
